<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        // var hour = 89; //初始值为89
        // var day = 0; //设置初始值为0
        // day = 89 / 24;
        // hour = 89 - (3 * 24);
        // console.log(parseInt(day))
        // console.log(hour)

        // console.log('战士共作战' + parseInt(day) + '天' + hour + '小时')

        // var hua = 80;
        // var she = (5 / 9 * (hua - 32)).toFixed(3);
        // console.log((5 / 9 * (hua - 32)).toFixed(3))

        // console.log('美国的温度是' + hua + "华氏度" + "或" + she + "摄氏度")
        // var num1 = 12;
        // var num2 = 14;
        // var num3 = 18;
        // if (num1 > num2 && num1 > num3) {
        //     console.log(num1);

        // } else if (num2 > num1 && num2 > num3) {
        //     console.log(num3);


        // } else {
        //     console.log(num3);

        // }
        var num = 1
        while (num <= 10)
            document.write(num);
        num++
    </script>


</body>

</html>